import easytrader

# user = easytrader.use('universal_client')
user = easytrader.use('ths')

# user.connect(r'D:\soft\finance\ths\xiadan.exe')
user.connect(r'D:\soft\finance\ths8.6\xiadan.exe')

print(user.balance)
print(user.position)

# res = user.buy('600000', price=7.63, amount=100)
# res = user.sell('000785', price=4.25, amount=100)
# print(res)
